﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DormMS.Model;
using DormMS.Model.SearchModels;
using DormMS.Model.ViewModels;

namespace DormMS.IService
{
    public interface IRoomService
    {
        List<V_Room> GetRoomList(RoomSearchModel search, ref int total);
        List<Room> GetRoomAllList();
        
        Room GetRoomInfoById(int id);

        List<SysCode> GetRoomType();

        List<SysCode> GetRoomAttr();

        Room GetRoomInfoByNOAndBuildingID(string NO, string BuildingID);

        int RoomAdd(Room model);

        int RoomEdit(Room model);

        int RoomDel(Room model);

        int RoomAddImport(List<Room> listRoomImport);

    }
}
